package com.ajk.server.model;

import java.util.Date;
/**
 * 医院  <br>
 * dict_hospital <br>
 * v1.0 2016-05-01
 */
 public class HospitalDict extends BaseModel implements Comparable<HospitalDict>{
	
	private static final long serialVersionUID = 1L;
	
 	
 	//id
	private Integer id;

 	//医院名称
 	//name
	private String name;

 	//医院级别 dict_hospital_level 表ID
 	//level_id
	private Integer levelId;

 	//区域ID
 	//region_id
	private Integer regionId;

 	//具体地址
 	//address
	private String address;

 	//经度
 	//longitude
	private Double longitude;

 	//纬度
 	//latitude
	private Double latitude;

 	//是否在用,0：未使用,1：正在使用
 	//in_used
	private Integer inUsed;

 	
 	//last_modify_time
	private Date lastModifyTime;

 	
 	//create_time
	private Date createTime;
	
	/**距离**/
	private Integer distance;

	
	/**
	*
 	*id
 	*/
	public Integer getId() {
		return id;
	}
	
	/**
	*
 	*id
 	*/
	public void setId(Integer id) {
		this.id = id;
	}
	
	/**
	*医院名称
 	*name
 	*/
	public String getName() {
		return name;
	}
	
	/**
	*医院名称
 	*name
 	*/
	public void setName(String name) {
		this.name = name;
	}
	
	/**
	*医院级别 dict_hospital_level 表ID
 	*level_id
 	*/
	public Integer getLevelId() {
		return levelId;
	}
	
	/**
	*医院级别 dict_hospital_level 表ID
 	*level_id
 	*/
	public void setLevelId(Integer levelId) {
		this.levelId = levelId;
	}
	
	/**
	*区域ID
 	*region_id
 	*/
	public Integer getRegionId() {
		return regionId;
	}
	
	/**
	*区域ID
 	*region_id
 	*/
	public void setRegionId(Integer regionId) {
		this.regionId = regionId;
	}
	
	/**
	*具体地址
 	*address
 	*/
	public String getAddress() {
		return address;
	}
	
	/**
	*具体地址
 	*address
 	*/
	public void setAddress(String address) {
		this.address = address;
	}
	
	/**
	*经度
 	*longitude
 	*/
	public Double getLongitude() {
		return longitude;
	}
	
	/**
	*经度
 	*longitude
 	*/
	public void setLongitude(Double longitude) {
		this.longitude = longitude;
	}
	
	/**
	*纬度
 	*latitude
 	*/
	public Double getLatitude() {
		return latitude;
	}
	
	/**
	*纬度
 	*latitude
 	*/
	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}
	
	/**
	*是否在用,0：未使用,1：正在使用
 	*in_used
 	*/
	public Integer getInUsed() {
		return inUsed;
	}
	
	/**
	*是否在用,0：未使用,1：正在使用
 	*in_used
 	*/
	public void setInUsed(Integer inUsed) {
		this.inUsed = inUsed;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public Date getLastModifyTime() {
		return lastModifyTime;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public Date getCreateTime() {
		return createTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@Override
	public int compareTo(HospitalDict o) {
		if(o!=null && o.id!=null){
			return o.id.compareTo(id);
		}
		return 0;
	}
	
	@Override
	public void dealWith(){
		super.dealWith();
		
	}

	public Integer getDistance() {
		return distance;
	}

	public void setDistance(Integer distance) {
		this.distance = distance;
	}
	
	
}	